<?php if(!empty($products['data'])):?> 
<div class="clear"></div>
<h2 class="block-title"><?php echo App::Config()->setting('appstoresettings_homepage_product_list_title',"Store");?></h2>
<div class="grid_16">
	<?php 
	foreach( $products['data'] as $key => $val):?>
		<div class="grid_3 align-center">	
				<div>
					<a href="<?php echo App::Config()->baseUrl("/item-detail/{$val['id']}/" . App::Helper('Utility')->text2Normalize($val['title']));?>">
						<img width="120" class="product-thumb-img" src="<?php echo App::Config()->baseUrl("/uploads/filemanager/{$val['imagethumb']}");?>" />
					</a>
				</div>
				<p>
					<a href="<?php echo App::Config()->baseUrl("/item-detail/{$val['id']}/" . App::Helper('Utility')->text2Normalize($val['title']));?>">
						<?php echo ($val['title']);?>
					</a>
				</p>
		</div>
	<?php endforeach;?>
</div>
<?php endif;?>